package com.inforich.orderManage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.inforich.orderManage.mapper.BookingDriverDriversMapper;
import com.inforich.orderManage.domain.BookingDriverDrivers;
import com.inforich.orderManage.service.IBookingDriverDriversService;

/**
 * 预约单司机关系表Service业务层处理
 *
 * @author hjm
 * @date 2022-10-26
 */
@Service
public class BookingDriverDriversServiceImpl extends
    ServiceImpl<BookingDriverDriversMapper, BookingDriverDrivers> implements
    IBookingDriverDriversService {

  @Override
  public Page<BookingDriverDrivers> pageBookingDriverDrivers(Page<BookingDriverDrivers> page,
      Map<String, Object> map) {
    return baseMapper.pageBookingDriverDrivers(page, map);
  }

  @Override
  public List<BookingDriverDrivers> listBookingDriverDrivers(Map<String, Object> map) {
    return baseMapper.listBookingDriverDrivers(map);
  }

  @Override
  public void removeByDriverId(Long driverId) {
    remove(new LambdaQueryWrapper<BookingDriverDrivers>()
        .eq(BookingDriverDrivers::getDriverId, driverId));
  }


}
